import * as BABYLON from '@babylonjs/core'
import { install as init } from './core'
import { Cannon as Physics } from './physics'
import * as mixins from './mixins'

export function install(app, options = {}) {
  app.config.globalProperties.BABYLON = BABYLON
  init(app, { components: { Physics, ...mixins }, ...options })
}

export { BABYLON }
export * from './api'
